//
//  NetworkMonitor.swift
//  Asman
//
//  Created by 李旭峰 on 5/16/19.
//  Copyright © 2019 李旭峰. All rights reserved.
//

import Foundation
import UIKit
import Alamofire
import RxSwift
import RxCocoa

class NetworkMonitor {
    
    public static let `default` = NetworkMonitor()
    let networkChangedSignal = PublishSubject<Void>()
    let realNetworkMonitor: NetworkReachabilityManager!  = NetworkReachabilityManager()
    public var isReachable: Bool {
        get {
            return NetworkMonitor.default.realNetworkMonitor.isReachable
        }
    }
    
}
